#ifndef FORMULAS3D_H_INCLUDED
#define FORMULAS3D_H_INCLUDED

#include "vector.h"

struct SRay {
    vector3f begin;
    vector3f end;
};

struct STriangle {
    vector3f A;
    vector3f B;
    vector3f C;
};

void WorldTransformation( vector3f& point, vector3f position, vector3f rotation );

void CameraTransformation(  vector3f& point, vector3f cam_pos, vector3f cam_rot );

bool IntersectRayTriangle( SRay ray, STriangle triangle, vector3f &intersectionVertex );

vector3f BuildNormal( vector3f vec_a, vector3f vec_b, vector3f vec_c );

#endif // 3D_FORMULAS_H_INCLUDED
